package com.example.cybz.sys.controller;


import com.example.cybz.common.result.Result;
import com.example.cybz.model.sys.Ware;
import com.example.cybz.sys.service.WareService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 仓库表 前端控制器
 * </p>
 *
 * @author mhwssad
 * @since 2025-06-26
 */
@RequiredArgsConstructor
@Api(tags = "仓库接口")
@RestController
@RequestMapping("/admin/sys/ware")
public class WareController {

    private final WareService wareService;

    @ApiOperation("查询所有仓库列表")
    @GetMapping("/findAllList")
    public Result<?>  findAllList(){
        List<Ware> wareList = wareService.list();
        return Result.ok(wareList);
    }

}

